package com.joolun.weixin.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.joolun.weixin.entity.ScrmChannelRecordLog;
import com.joolun.weixin.entity.vo.ScrmChannelRecordLogVo;
import org.apache.ibatis.annotations.Param;

/**
 * 渠道数据日志Mapper接口
 * 
 * @author joolun
 * @date 2025-04-11
 */
public interface ScrmChannelRecordLogMapper extends BaseMapper<ScrmChannelRecordLog>
{
    /**
     * 查询渠道数据日志
     * 
     * @param id 渠道数据日志主键
     * @return 渠道数据日志
     */
    public ScrmChannelRecordLog selectScrmChannelRecordLogById(Long id);

    /**
     * 查询渠道数据日志列表
     * 
     * @param scrmChannelRecordLog 渠道数据日志
     * @return 渠道数据日志集合
     */
    public List<ScrmChannelRecordLog> selectScrmChannelRecordLogList(ScrmChannelRecordLog scrmChannelRecordLog);

    /**
     * 折线图
     *
     * @param params
     * @return 渠道数据日志集合
     */
    public List<ScrmChannelRecordLogVo> selectChart(@Param("params") Map<String, Object> params);

    /**
     * 新增渠道数据日志
     * 
     * @param scrmChannelRecordLog 渠道数据日志
     * @return 结果
     */
    public int insertScrmChannelRecordLog(ScrmChannelRecordLog scrmChannelRecordLog);

    /**
     * 修改渠道数据日志
     * 
     * @param scrmChannelRecordLog 渠道数据日志
     * @return 结果
     */
    public int updateScrmChannelRecordLog(ScrmChannelRecordLog scrmChannelRecordLog);

    /**
     * 删除渠道数据日志
     * 
     * @param id 渠道数据日志主键
     * @return 结果
     */
    public int deleteScrmChannelRecordLogById(Long id);

    /**
     * 批量删除渠道数据日志
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteScrmChannelRecordLogByIds(Long[] ids);
}
